﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace WinformUpperDataCollections.Models
{
    /// <summary>
    /// 从站信息类
    /// </summary>
    [XmlRoot("SlaveInfo")]
    public class SlaveInfo
    {
        /// <summary>
        /// 从站地址
        /// </summary>
        [XmlElement("SlaveId")]
        public byte SlaveId { get; set; }
        /// <summary>
        /// 功能码
        /// </summary>
        [XmlElement("FunctionCode")]
        public int FunctionCode { get; set; }
        /// <summary>
        /// 开始地址
        /// </summary>
        [XmlElement("StartAddress")]
        public ushort StartAddress { get; set; }
        /// <summary>
        /// 寄存器数量
        /// </summary>
        [XmlElement("Length")]
        public  ushort Length   { get; set; }
    }
}
